/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modul.util.splashscreen;

import java.awt.BorderLayout;
import javax.swing.JWindow;

/**
 *
 * @author Pinds
 */
public class SplashScreen extends JWindow {

    public SplashScreen() {
        int milisecond = 3000;
        panelScreenSaver Po = new panelScreenSaver(milisecond);
        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(Po, BorderLayout.WEST);

        pack();
        setLocationRelativeTo(null);
        setVisible(true);
        try {
            Thread.sleep(milisecond);
        } catch (InterruptedException e) {
        } finally {
            setVisible(false);
        }
    }
}
